package com.liang.kborcl.aop;


import org.aopalliance.aop.Advice;
import org.springframework.aop.Pointcut;
import org.springframework.aop.PointcutAdvisor;
import org.springframework.stereotype.Component;

@Component
public class MyAdvisor implements PointcutAdvisor {

    @Override
    //使用自定义的切点
    public Pointcut getPointcut() {
        return new MyPointCut();
    }

    @Override
    //使用自定义的前置增强
    public Advice getAdvice() {
        return new MyBeforeAdvice();
    }

    //目前该方法作用是啥不知道
    @Override
    public boolean isPerInstance() {
        return true;
    }


}